package com.job.service;

import com.job.dao.EmployerDao;
import com.job.model.Employer;
import org.hibernate.engine.spi.Mapping;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;
import java.util.List;

/**
 * companyList页面服务层
 * @author hasee
 */
@Service
public class CompanyService {
  private   EmployerDao employerDao;



    /**
     * 获取公司标题和简介在招的岗位
     * @param Page 翻译查询，page 页面 1page 有12个公司
     * @return
     */
    @Transactional
    public HashMap showEmployerAndJob(int Page){
       List<Employer> employerList= employerDao.getEmployer(0,11);
       HashMap mapping=new HashMap<String ,List>();
       mapping.put("empoyerList",employerList );
        //todo
        return mapping;
    }

    @Autowired
    public void setEmployerDao(EmployerDao employerDao) {
        this.employerDao = employerDao;
    }
}
